<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
if(request.getParameter("error")!=null){
%>
<script type="text/javascript">
alert("搜索内容不为空");
</script>
<%
}
%>
<center>
<form action = "result.jsp" method = "post">
查找:<input type = "text"  name = "search">
<input type = "submit" value = "Go">
</form>
</center>
</body>
</html>